<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/demo.css">
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/easy_ui/jquery.easyui.min.js"></script>

<script>
    function alert1() {
        $.messager.alert('My Title', 'Chúc mừng bạn đã đăng ký thành công!');
        setTimeout("location.href = 'http://salesmartlink.com';", 3000);
    }
    function alert2() {
        $.messager.alert('Thông báo', 'Chúc mừng, hóa đơn mua quảng cáo thanh toán thành công !', 'info');
         setTimeout("location.href = 'http://salesmartlink.com';", 3000);
    }
    function alert3() {
        $.messager.alert('Thông báo', 'Giao dịch thất bại!', 'warning');
        setTimeout("location.href = 'http://salesmartlink.com';", 5000);
    }
    function alert4() {
        $.messager.alert('My Title', 'Here is a question message!', 'question');
    }
    function alert5() {
        $.messager.alert('My Title', 'Here is a warning message!', 'warning');
    }
</script>

<?php
if (!empty($ketqua)) {
    if ($ketqua ==5){
        echo "<script> $( document ).ready(function(){alert2();});</script>";
    } 
    elseif ($ketqua == 6) {
        echo "<script> $( document ).ready(function(){alert3();});</script>";
    }
    elseif ($ketqua > 0) {
        echo "<script> $( document ).ready(function(){alert1();});</script>";
    }
 
}